package com.recharge.utils;

import org.springframework.stereotype.Service;

/**
 * 趣讯结果集
 * @author qq
 *
 */
@Service
public class ResultCodeQuXun{
	
	/**
	 * 判断趣讯的结果集
	 */
	public  String processResultCode(String processCode){
		String result ="";
		if("00000".equals(processCode)){
			result = "成功";
			return result;
		}else if("10001".equals(processCode)){
			result = "非法手机号码";
			return result;
		}else if("10002".equals(processCode)){
			result = "非法批次";
			return result;
		}else if("10003".equals(processCode)){
			result = "非法参数(参数只能是特殊字符或为空值)";
			return result;
		}else if("10004".equals(processCode)){
			result = "非法订购日期";
			return result;
		}else if("10005".equals(processCode)){
			result = "签名验证失败";
			return result;
		}else if("10006".equals(processCode)){
			result = "非法合作方";
			return result;
		}else if("10007".equals(processCode)){
			result = "非法销售品";
			return result;
		}else if("10008".equals(processCode)){
			result = "非法请求流水号";
			return result;
		}else if("10009".equals(processCode)){
			result = "非法渠道";
			return result;
		}else if("10010".equals(processCode)){
			result = "号码欠费";
			return result;
		}else if("10012".equals(processCode)){
			result = "号码已冻结或注销";
			return result;
		}else if("10013".equals(processCode)){
			result = "黑名单客户";
			return result;
		}else if("10015".equals(processCode)){
			result = "系统异常";
			return result;
		}else if("10016".equals(processCode)){
			result = "不能重复订购";
			return result;
		}else if("10019".equals(processCode)){
			result = "套餐互斥";
			return result;
		}else if("10020".equals(processCode)){
			result = "号码已欠费停机";
			return result;
		}else if("10026".equals(processCode)){
			result = "生成订单号失败";
			return result;
		}else if("10027".equals(processCode)){
			result = "超出可订购流量包的数量";
			return result;
		}else if("10028".equals(processCode)){
			result = "活动尚未开始";
			return result;
		}else if("10029".equals(processCode)){
			result = "活动任务已结束";
			return result;
		}else if("10030".equals(processCode)){
			result = "非法合同编号";
			return result;
		}else if("10031".equals(processCode)){
			result = "产品未配置";
			return result;
		}else if("10032".equals(processCode)){
			result = "销售品不存在";
			return result;
		}else if("10033".equals(processCode)){
			result = "用户有在途工单，无法受理";
			return result;
		}else if("10040".equals(processCode)){
			result = "无权限调用该服务";
			return result;
		}else if("10044".equals(processCode)){
			result = "超过每小时能访问该接口的次数";
			return result;
		}else if("10046".equals(processCode)){
			result = "订购紧急停止";
			return result;
		}else if("10054".equals(processCode)){
			result = "配置异常";
			return result;
		}else if("10058".equals(processCode)){
			result = "客户业务受限";
			return result;
		}else if("10062".equals(processCode)){
			result = "省内 CRM未找到该本地网区号";
			return result;
		}else if("10065".equals(processCode)){
			result = "系统异常";
			return result;
		}else if("10067".equals(processCode)){
			result = "密钥或向量不正确";
			return result;
		}else if("10068".equals(processCode)){
			result = "充值号码所属省份与充值渠道省份不一致";
			return result;
		}else if("10073".equals(processCode)){
			result = "系统忙";
			return result;
		}else if("10074".equals(processCode)){
			result = "用户信息不存在";
			return result;
		}else if("10090".equals(processCode)){
			result = "其他";
			return result;
		}else if("10108".equals(processCode)){
			result = "用户为预开通卡用户，请先办理资料返档";
			return result;
		}else if("10109".equals(processCode)){
			result = "不存在对应的业务开展省份";
			return result;
		}else if("10110".equals(processCode)){
			result = "剩余可用账户不足";
			return result;
		}else if("10111".equals(processCode)){
			result = "用户状态异常";
			return result;
		}else if("10115".equals(processCode)){
			result = "找不到对应运营商";
			return result;
		}else if("10117".equals(processCode)){
			result = "调用计费接口失败";
			return result;
		}else if("10118".equals(processCode)){
			result = "CRM 销售品价格尚未配置";
			return result;
		}else if("10119".equals(processCode)){
			result = "合同结算方式不存在";
			return result;
		}else if("10120".equals(processCode)){
			result = "IMSI 反查不到对应手机号码";
			return result;
		}else if("10122".equals(processCode)){
			result = "合同业务范围尚未配置";
			return result;
		}else if("10225".equals(processCode)){
			result = "无主套餐";
			return result;
		}else if("60002".equals(processCode)){
			result = "账户余额不足";
			return result;
		}else if("80001".equals(processCode)){
			result = "拼装发送报文异常";
			return result;
		}else if("80002".equals(processCode)){
			result = "网络异常";
			return result;
		}else if("80003".equals(processCode)){
			result = "系统异常";
			return result;
		}else if("80004".equals(processCode)){
			result = "解析接收报文异常";
			return result;
		}else if("80006".equals(processCode)){
			result = "解析发送报文异常";
			return result;
		}else if("80009".equals(processCode)){
			result = "拼装合作方通知报文异常";
			return result;
		}else if("80010".equals(processCode)){
			result = "异步通知合作方失败";
			return result;
		}else if("80017".equals(processCode)){
			result = "找不到服务编码";
			return result;
		}else if("90001".equals(processCode)){
			result = "系统异常";
			return result;
		}else if("90002".equals(processCode)){
			result = "CRM 内部错误";
			return result;
		}else if("90003".equals(processCode)){
			result = "异常报俊";
			return result;
		}else if("90004".equals(processCode)){
			result = "集团 CRM 异步通知的订购结果为订购失败 ";
			return result;
		}else if("90005".equals(processCode)){
			result = "号码不存在";
			return result;
		}else if("99999".equals(processCode)){
			result = "其他错误 ";
			return result;
		}else if("1".equals(processCode)){
			result = "成功";
			return result;
		}else if("9".equals(processCode)){
			result = "充值失败，已退款";
			return result;
		}else if("111".equals(processCode)){
			result = "用户停机,不允许办理该业务";
			return result;
		}else if("940003".equals(processCode)){
			result = "用户有在途工单";
			return result;
		}else if("940037".equals(processCode)){
			result = "用户有在途工单";
			return result;
		}else if("956666".equals(processCode)){
			result = "用户非正常在用";
			return result;
		}else if("981063".equals(processCode)){
			result = "没有找到对应的用户 ";
			return result;
		}else if("9999".equals(processCode)){
			result = "订单失败（测试环境都为失败） ";
			return result;
		}
		return null;
	}
}
